import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/pms/PmsFeightTemplate/list',
    method:'get',
    params:params
  })
}
export function createFreight(data) {
  return request({
    url:'/pms/PmsFeightTemplate/create',
    method:'post',
    data:data
  })
}
export function updateFreight(id,data) {
  return request({
    url:'/pms/PmsFeightTemplate/update/'+id,
    method:'post',
    data:data
  })
}
export function deleteFreight(id) {
    return request({
      url:'/pms/PmsFeightTemplate/delete/'+id,
      method:'delete',
      //data:data
    })
}
export function checkFreight(id) {//查询运费模版明细
    return request({
      url:'/pms/PmsFeightTemplate/'+id,
      method:'post',
      //data:data
    })
  }